<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::any('wx','WxController@index'); //微信入口
//Route::get('chat','WxController@chat');//
Route::get('h','WxController@h'); //自己调用入口


//------------前台首页---------------
Route::get('/', 'IndexController@index');//首页
Route::get('goods/{goods_id}', 'ShopController@goods');//商品页
Route::get('buy/{goods_id}', 'ShopController@buy');//加入购物车
Route::get('clear', 'ShopController@clear');//清空购物车
Route::post('done','ShopController@done'); //订单入库，购物车内的商品入库


Route::get('cart', 'ShopController@cart');//加入购物车后，跳转到商品购物页
Route::get('login','UserController@login');//微信登录页
Route::get('logout','UserController@logout');//微信退出页